<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <!--
/*******************************************************************************
**
** Filename: LMSLogin.htm
**
** File Description: This page contains an HTML form that prompts the user 
**                   for a username and password.  Currently no checks are 
**                   performed on the entries on this form and the user may 
**                   proceed simply by clicking the "Submit" button.  By 
**                   submitting this form, the LMSLogin.jsp is invoked.
**
** Author: ADL Technical Team
**
** Contract Number:
** Company Name: CTC
**
** Module/Package Name:
** Module/Package Description:
**
** Design Issues:
**
** Implementation Issues:
** Known Problems:
** Side Effects:
**
** References: ADL SCORM
**
/*******************************************************************************
   
   ADL SCORM 2004 4th Edition Sample Run-Time Environment
   
   The ADL SCORM 2004 4th Ed. Sample Run-Time Environment is licensed under
   Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States.
   
   The Advanced Distributed Learning Initiative allows you to:
   * Share - to copy, distribute and transmit the work.
   * Remix - to adapt the work. 
   
   Under the following conditions:
     *  Attribution. You must attribute the work in the manner specified by the author or
        licensor (but not in any way that suggests that they endorse you or your use
        of the work).
     *  Noncommercial. You may not use this work for commercial purposes. 
     *  Share Alike. If you alter, transform, or build upon this work, you may distribute
        the resulting work only under the same or similar license to this one. 
   
   For any reuse or distribution, you must make clear to others the license terms of this work. 
   
   Any of the above conditions can be waived if you get permission from the ADL Initiative. 
   Nothing in this license impairs or restricts the author's moral rights.

*******************************************************************************/
-->
   <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
      <meta http-equiv="expires" content="Tue, 20 Aug 1999 01:00:00 GMT" />
      <meta http-equiv="Pragma" content="no-cache" />
      <title>SCORM 2004 4th Edition Sample Run-Time Environment
         Version 1.1 - Login</title>

      <link href="../includes/sampleRTE_style.css" rel="stylesheet"
         type="text/css" />

      <script type="text/javascript">
      //<!-- [CDATA[
      /****************************************************************************
      **
      ** Function:  submit1_onclick()
      ** Input:   none
      ** Output:  none
      **
      ** Description:  This method checks to see if both text boxes, password and
      **               username have something populating them.
                       传递用户名和密码 返回ture时，提交到LMSLogin.jsp页面
      **
      ***************************************************************************/
      function submit1_onclick() 
      {
         var username = new String(document.getElementById("uname").value);
         var password = new String(document.getElementById("pwd").value);
         
         if (username == "" || password == "")
         {
            alert("you must enter a username and a password");
            return false;
         }
         return true;
      }
      //]]-->
      </script>
   </head>

   <body id="main_page">

      <div id="login_page">

         <form action="LMSLogin.jsp" method="get" id="loginform"
            onsubmit="return submit1_onclick()" accept-charset="utf-8">
            <!-- name="loginform" removed (deprecated -->
            <table>
               <tr>
                  <td>
                     <div id="login_col1">

                        <div id="login_col1a_user">
                           <label for="uname">
                               用户名
                           </label>
                           <br />

                        </div>
                     </div>
                  </td>
                  <td>
                     <div id="login_col2">
                        <input class="unpw" type="text" id="uname" name="uname" value="" />
                     </div>
                  </td>
               </tr>
               <tr>
                  <td>
                     <div id="login_col1a_pwd">
                        <label for="pwd">
                            密码
                        </label>
                        <br />
                     </div>
                  </td>
                  <td >
                     <div id="login_col3">
                        <input class="unpw" type="password" id="pwd" name="pwd" value="" />
                     </div>
                  </td>
               </tr>
            </table>

            <div>

               <br />
               <input type="submit" value="确定" id="submit1"
                  name="submit1" />
            </div>

         </form>

         <script type="text/javascript">
			//<!--[CDATA[

				document.getElementById("uname").focus();  //聚焦函数，使光标一开始在用户名栏内
			//]]-->

			</script>

      </div>
   </body>
</html>
